From 58899b1097a09d580788726f7b88703aa4d5892c Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 13 Sep 2007 05:21:42 +0000 Subject: [PATCH] Fix a memory leak svn path=/trunk/; revision=18805 --- gdk-pixbuf/ChangeLog | 5 +++++ gdk-pixbuf/gdk-pixbuf-scaled-anim.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gdk-pixbuf/ChangeLog b/gdk-pixbuf/ChangeLog index 6cf3957d43..a93c95f512 100644 --- a/gdk-pixbuf/ChangeLog +++ b/gdk-pixbuf/ChangeLog @@ -1,3 +1,8 @@ +2007-09-13 Matthias Clasen + + * gdk-pixbuf-scaled-anim.c (get_scaled_pixbuf): Don't leak + options. + 2007-09-08 Matthias Clasen * io-ani.c: Fix some possible crashes. (#468832, Michal Luczaj) diff --git a/gdk-pixbuf/gdk-pixbuf-scaled-anim.c b/gdk-pixbuf/gdk-pixbuf-scaled-anim.c index 26f105bd38..b9b593dd2c 100644 --- a/gdk-pixbuf/gdk-pixbuf-scaled-anim.c +++ b/gdk-pixbuf/gdk-pixbuf-scaled-anim.c @@ -145,7 +145,8 @@ get_scaled_pixbuf (GdkPixbufScaledAnim *scaled, /* Copy the original pixbuf options to the scaled pixbuf */ if (options && scaled->current) - g_object_set_qdata (G_OBJECT (scaled->current), quark, g_strdupv (options)); + g_object_set_qdata_full (G_OBJECT (scaled->current), quark, + g_strdupv (options), (GDestroyNotify) g_strfreev); return scaled->current; } -- 2.30.2